import QtQuick
import QtQuick.Controls
import QtQuick.Layouts

Window {
    width: 640
    height: 480
    visible: true
    title: qsTr("Hello World")

    property bool wifiEnabled: true
    property bool bluetoothEnabled: false

    GridLayout {
        anchors.centerIn: parent
        columns: 2
        Text {text: qsTr("Wi-Fi:")}
        Switch {
            checked: wifiEnabled
            onClicked: wifiEnabled = !wifiEnabled
        }
        Text {text: qsTr("Bluetooth:")}
        Switch {
            checked: bluetoothEnabled
            onClicked: bluetoothEnabled = !bluetoothEnabled

        }
    }
}
